// types/form.ts
export interface propsConfig {
  options?: {
    title?: {
      text?: string;
      textAlign?: string; // 或使用更具体的类型，如 ELabelAlignment
      textStyle?: {
        fontSize?: number;
        color?: string;
      };
    };
    grid?: {
      left?: number | string;
      right?: number | string;
      top?: number | string;
      bottom?: number | string;
    };
    xAxis?: {
      name?: string;
      show?: boolean;
      axisLabel?: {
        color?: string;
        fontSize?: number;
      };
      color?: string;
      data?: (number | string)[];
    };
    yAxis?: {
      name?: string;
      min?: number;
      max?: number;
      show?: boolean;
      axisLabel?: {
        color?: string;
        fontSize?: number;
      };
    };
    series?: Array<{
      name?: string;
      type?: 'line' | 'bar' | 'pie' | 'scatter' | 'radar'; // 可扩展其他类型
      itemStyle?: {
        color?: string;
      };
      lineStyle?: {
        width?: number;
        color?: string;
        type?: 'solid' | 'dashed' | 'dotted';
        dashArray?: number[]; // 虚线间隔，如 [10, 10]
      };
      isDigitalLine?: boolean;
      smooth?: boolean;
      data?: number[];
      markLine?: {
        data?: Array<{
          yAxis?: number;
          name?: string;
          lineStyle?: {
            color?: string;
            type?: 'solid' | 'dashed' | 'dotted';
          };
          label?: {
            color?: string;
            fontSize?: number;
          };
        }>;
      };
    }>;
  };
  text?: string; // 可选属性
  empty?: boolean;
}
